package com.aabte.design2.behavioral.chain.v1;

import com.aabte.design2.behavioral.chain.Request;

/**
 * @author Daniel
 * @version 1.0
 * @date 2020/5/3
 */
public class UsernameHandler extends BaseHandler {

    @Override
    public void handle(Request request) {
        if (null != request.getUsername()) {
            super.handle(request);
        } else {
            System.out.println("username is null, bad request.");
        }
    }
}
